package cn.tedu.basic;

import java.util.*;

public class Test5 {
    public static void main(String[] args) {
        HashMap<Integer,String> ha =new HashMap();
        ha.put(88,"fbb");
        ha.put(99,"dgvb");
        ha.put(66,"djf");
        System.out.println(ha);
        Set<Integer> s =ha.keySet();
        for (Integer in : s){
            String st =ha.get(in);
            System.out.println(in + st);
        }
        Collection<String> col = ha.values();
        Iterator it =col.iterator();
        while (it.hasNext()){
            Object st1 =it.next();
            System.out.println(st1);
        }
      for (String st2 : col){
          System.out.println(st2);
      }
      Set<Map.Entry<Integer,String>> se =ha.entrySet();
      for (Map.Entry<Integer,String> ma : se){
          Integer in =ma.getKey();
          String st =ma.getValue();
          System.out.println(in + st);
      }
    }
}
interface Woman{
    int age =18;
    public static final String name="ggry";
    public void shaofu();
    abstract public void kongjie();
    void hushi();
}
interface Man extends Woman{
    void bailing();

}
class Me implements Man {
    static int age =18;
    static String name ="gyujh";
    public void shaofu(){

    }
    public void kongjie(){

    }
    public void hushi(){

    }
    public void bailing(){

    }

}